package com.snut.tomorrowNews.dao.back;

import com.snut.tomorrowNews.model.Admin;
import com.snut.tomorrowNews.model.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminDao {

     void updateAdmin(Admin admin);

     List<Admin> getAdminList();

    List<Role> getRoleList();

    void insertAdmin(Admin admin);

    void insertAdminRole(@Param("aid") Integer id, @Param("rid") Integer roleid);

    Admin findAdmin(@Param("id") Integer id);


    String checkPasByid(@Param("id") Integer id);

    void updatePas(@Param("id") Integer id,@Param("newpas") String newpas);
}
